<template>
  <div>
    <div class="header">
      <i v-if="$route.meta.goBack" class="iconfont icon-fanhui" @click="$router.go(-1)"></i>
      <header>{{$route.meta.title}}</header>
    </div>
    <!-- 路由出口 -->
    <keep-alive>
      <!-- 默认路由出口 -->
       <router-view class="con"></router-view>
    </keep-alive>

  </div>
</template>

<script>
export default {

}
</script>

<style>
.box{
  border: 1px solid #000;
  margin: 0.2rem;
}
.title{
  font-size: 0.5rem;
  color: #ff4400;
}
.header{
  width: 100vw;
  height: 0.8rem;
  position: fixed;
  left: 0;
  top: 0;
  background: #ff4400;
  font-weight: bold;
}
.con{
  padding-top: 0.8rem;
}
.header .icon-fanhui{
  position: absolute;
  left: 0.2rem;
  line-height: 0.8rem;
  color: #fff;
  top: 0;
}
.header header{
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 0.8rem;
  color: #fff;
}
</style>